package org.onionframework.persistence.dao.functions.rowsjoin;

import org.onionframework.persistence.dao.functions.RowsConcatFunction;

public class MYSQLRowsConcatFunction implements RowsConcatFunction {

	@Override
	public String toSQL(String column, String separator) {
		StringBuilder sb = new StringBuilder();
		
		sb.append("group_concat(").append(column).append(" SEPARATOR '")
			.append(separator).append("')");
		
		return sb.toString();
	}

}
